package com.pzy.base.util;

public class RequestBodyContextUtil {

    private static final ThreadLocal<String> BODY_THREAD_LOCAL = new ThreadLocal<>();

    private RequestBodyContextUtil() {
    }

    public static String getParam() {
        String tmp = BODY_THREAD_LOCAL.get();
        return tmp == null ? "" : tmp;
    }

    public static void setParam(String params) {
        BODY_THREAD_LOCAL.set(params);
    }

    public static void remove() {
        BODY_THREAD_LOCAL.remove();
    }
}
